<div class="users view">
<h2><?php  __('Chi tiết thành viên');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mã'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $usr['User']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nhóm thành viên'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($usr['Group']['name'], array('controller' => 'groups', 'action' => 'view', $usr['Group']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tên đăng nhập'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $usr['User']['username']; ?>
			&nbsp;
		</dd>
		
	</dl>
</div>
<div class="actions">
	<h3><?php __('Chức năng'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $usr['User']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $usr['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $usr['User']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Danh sách thành viên', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Thêm thành viên', true), array('action' => 'add')); ?> </li>
		
	</ul>
</div>
<div class="related">
	<h3><?php __('Tỉnh thành liên quan');?></h3>
	<?php if (!empty($usr['City'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		
		<th><?php __('Tên Tỉnh/Thành'); ?></th>
		<th class="actions"><?php __('Chức năng');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($usr['City'] as $city):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $city['name'];?></td>
			<td><?php echo $city['alias'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'cities', 'action' => 'view', $city['id'])); ?>
				<?php echo $this->Html->link(__('Sửa', true), array('controller' => 'cities', 'action' => 'edit', $city['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'cities', 'action' => 'delete', $city['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $city['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="Chức năng">
		<ul>
			<li><?php echo $this->Html->link(__('Thêm Tỉnh/Thành', true), array('controller' => 'cities', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
